@extends('layouts.home')
@extends('layouts.nav')
@extends('layouts.top')

@section('heading')
    <h3>
        用户管理
    </h3>
    <ul class="breadcrumb">
        <li>
            <a href="#">用户管理</a>
        </li>
        <li class="active"> 微信用户</li>
    </ul>
@endsection

@section('wrapper')
    @include('share.error')
    <div class="row">
        <div class="col-sm-12">
            <section class="panel">
                <header class="panel-heading">
                    &nbsp;
                </header>
                <div class="panel-body">
                    <section id="unseen">
                        <table class="table  table-hover general-table">
                            <thead>
                            <tr>
                                <th>头像</th>
                                <th>电话</th>
                                <th>昵称</th>
                                <th>性别</th>
                                <th>省份</th>
                                <th>城市</th>
                                <th class="numeric">创建时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($customers as $customer)
                                <tr>
                                    <td><div style="height: 50px;"><img src="{{ $customer->info->headimgurl}}" style="height: 100%;" /></div></td>
                                    <td>{{ $customer->tel }}</td>
                                    <td>{{ $customer->info->name or '游客' }}</td>
                                    <td>{{ $customer->info->sex == 1 ? '男': '女' }}</td>
                                    <td>{{ $customer->info->province }}</td>
                                    <td>{{ $customer->info->city }}</td>
                                    <td class="numeric">{{ $customer->created_at }}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </section>
                </div>
            </section>
        </div>
    </div>
@endsection